<!-- Modal -->
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
             <h4 class="modal-title text-center">Đăng nhập</h4>
        </div>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'action'=>array('/Users/default/authenticate'),
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		'class'=>'form'
	),
)); ?>
        <div class="modal-body">
            <div class="form-group">
                <?php //echo $form->labelEx($model, 'username', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model, 'username', array('class'=>'form-control', 'placeholder'=>'Tên đăng nhập')); ?>
                <div class="text-center text-danger"><?php echo $form->error($model, 'username'); ?></div>
            </div>
            <div class="form-group">
                <?php //echo $form->labelEx($model, 'password', array('class'=>'control-label')); ?>
                <?php echo $form->passwordField($model, 'password', array('class'=>'form-control', 'placeholder'=>'Mật khẩu')); ?>
                <div class="text-center text-danger"><?php echo $form->error($model, 'password'); ?></div>
            </div>
            <div class="form-group">
                <div class="checkbox">
                    <label><?php echo $form->checkbox($model, 'rememberMe'); ?> Ghi nhớ đăng nhập</label>
                    <?php echo CHtml::link('Quên mật khẩu?', array('/Users/default/recover'), array('title'=>'Khôi phục mật khẩu tài khoản', 'class'=>'btn-modal pull-right', 'data-toggle'=>'modal', 'data-target'=>'#myModalRecover', 'data-dismiss'=>'modal')); ?>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="submit" class="btn btn-success btn-block">Đăng nhập</button>
            <p class="text-center">hoặc</p>
<?php echo CHtml::link('Đăng ký tài khoản', array('/Users/default/authenticate'), array('title'=>'Đăng ký tài khoản tại NextTopEvent', 'class'=>'btn btn-danger btn-block')); ?>
        </div>
<?php $this->endWidget(); ?>
    </div>
    <!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->